find the nth partial sum

visit shbcf.ru